package com.project.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("arddess")
@ExcelTarget("adddressEntity")
public class AddressBean {
    /**地址id*/
    @TableId(value = "id",type = IdType.AUTO)
    private Long addressId;
    /**用户编号*/
    @TableField("userNum")
    private Long userNum;
    /**收货人姓名*/
    @Excel(name = "收货人姓名")
    @TableField("cneeName")
    private String cneeName;
    /**收货人电话*/
    @Excel(name = "收货人电话")
    @TableField("cneePhone")
    private String cneePhone;
    /**地址默认状态*/
    @Excel(name = "地址默认状态")
    @TableField("status")
    private Integer status;
    /**省*/
    @Excel(name = "省")
    @TableField("province")
    private String province;
    /**市*/
    @Excel(name = "市")
    @TableField("city")
    private String city;
    /**区*/
    @Excel(name = "区")
    @TableField("area")
    private String area;
    /**详细地址*/
    @Excel(name = "详细地址")
    @TableField("addressInfo")
    private String addressInfo;

    public AddressBean() {
    }

    public AddressBean(Long userNum, String cneeName, String cneePhone, Integer status, String province, String city, String area, String addressInfo) {
        this.userNum = userNum;
        this.cneeName = cneeName;
        this.cneePhone = cneePhone;
        this.status = status;
        this.province = province;
        this.city = city;
        this.area = area;
        this.addressInfo = addressInfo;
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public Long getUserNum() {
        return userNum;
    }

    public void setUserNum(Long userNum) {
        this.userNum = userNum;
    }

    public String getCneeName() {
        return cneeName;
    }

    public void setCneeName(String cneeName) {
        this.cneeName = cneeName;
    }

    public String getCneePhone() {
        return cneePhone;
    }

    public void setCneePhone(String cneePhone) {
        this.cneePhone = cneePhone;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAddressInfo() {
        return addressInfo;
    }

    public void setAddressInfo(String addressInfo) {
        this.addressInfo = addressInfo;
    }

    @Override
    public String toString() {
        return "AddressBean{" +
                "addressId=" + addressId +
                ", userNum='" + userNum + '\'' +
                ", cneeName='" + cneeName + '\'' +
                ", cneePhone='" + cneePhone + '\'' +
                ", status=" + status +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", area='" + area + '\'' +
                ", addressInfo='" + addressInfo + '\'' +
                '}';
    }
}
